package com.banmao.mall.mapper;

import com.banmao.mall.model.pojo.Region;
import com.banmao.mall.model.vo.admin.market.AreaVO;
import com.banmao.mall.model.vo.admin.market.CityVO;
import com.banmao.mall.model.vo.admin.market.ProvinceVO;

import java.util.List;

public interface RegionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Region record);

    int insertSelective(Region record);

    Region selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Region record);

    int updateByPrimaryKey(Region record);

    String selectNameById(Integer id);

    List<ProvinceVO> selectAllProvince();

    List<CityVO> selectAllCityByPID(Integer id);

    List<AreaVO> selectAllAreaByPID(Integer id);
}